import instance from "./request";
//获取题库列表
const getworklist = (data) => {
  return instance({
    url: "/question/list",
    params: data,
  });
};
//改变题目状态
const changeStatus = (data) => {
  return instance({
    url: "/question/status",
    method: "post",
    data,
  });
};
//删除题目
const delquestion = (data) => {
  return instance({
    url: "/question/remove",
    method: "post",
    data,
  });
};
//增加题目
const addquestion = (data) => {
  return instance({
    url: "/question/add",
    method: "post",
    data,
  });
};
//编辑题目
const editquestion = (data) => {
  return instance({
    url: "/question/edit",
    method: "post",
    data,
  });
};
//获取题目信息
const getquestion = (data) => {
  return instance({
    url: "/question/one",
    method: "post",
    data,
  });
};
export {
  getworklist,
  changeStatus,
  editquestion,
  addquestion,
  delquestion,
  getquestion,
};
